package cn.test;

public abstract class Account {
    private long id ;//卡号
    private String name ;//卡持有者姓名
    private String password ;//密码
    private String personld ;//身份证号
    private String email ;//邮箱
    private double balance ;//余额

    public  Account(long id, String name, String password, String personld, String email, double balance) {
        this.id = id;//卡号
        this.name = name;//卡持有者姓名
        this.password = password;//密码
        this.personld = personld;//身份证号
        this.email = email;//邮箱
        this.balance = balance;//余额
    }

    public void despoit(double money){//存款
        this.balance+=money ;
    }
    public abstract void withdraw(double money) ;//取款


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPersonld() {
        return personld;
    }

    public void setPersonld(String personld) {
        this.personld = personld;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
}
